From: Ray Strode Date: Thu, 23 Jul 2015 17:17:54 +0000 (-0400) Subject: authPrompt: allow cancellation before verification starts X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~1013^2^2~1285 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=778ad49ab42cad936af7635436dbc3824200170f;p=gnome-shell.git authPrompt: allow cancellation before verification starts The user should be allowed to cancel if verification hasn't started yet and they're typing in their username. This commit changes the authPrompt cancel function to not ignore such requests. https://bugzilla.gnome.org/show_bug.cgi?id=752739 --- diff --git a/js/gdm/authPrompt.js b/js/gdm/authPrompt.js index 6e5c79f20..b57b00bb7 100644 --- a/js/gdm/authPrompt.js +++ b/js/gdm/authPrompt.js @@ -501,7 +501,7 @@ const AuthPrompt = new Lang.Class({ }, cancel: function() { - if (this.verificationStatus == AuthPromptStatus.NOT_VERIFYING || this.verificationStatus == AuthPromptStatus.VERIFICATION_SUCCEEDED) { + if (this.verificationStatus == AuthPromptStatus.VERIFICATION_SUCCEEDED) { return; } this.reset();